home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1536.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.8 KB  |  107 lines

  1. 130
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. CopyFileProgress
  6. --- RECORDSEPARATOR ---
  7.  
  8. --- RECORDSEPARATOR ---
  9. (continued)
  10. --- RECORDSEPARATOR ---
  11.  
  12. --- RECORDSEPARATOR ---
  13. Notes:
  14. --- RECORDSEPARATOR ---
  15.  
  16. --- RECORDSEPARATOR ---
  17. Seven Flags are defined: 
  18. --- RECORDSEPARATOR ---
  19. CP_NOCANCEL 
  20. --- RECORDSEPARATOR ---
  21. --- RECORDSEPARATOR ---
  22. does not show the Cancel button. 
  23. --- RECORDSEPARATOR ---
  24. CP_NOFILENAME 
  25. --- RECORDSEPARATOR ---
  26. --- RECORDSEPARATOR ---
  27. does not display the file names while copying. 
  28. --- RECORDSEPARATOR ---
  29. CP_STOPONERROR 
  30. --- RECORDSEPARATOR ---
  31. --- RECORDSEPARATOR ---
  32. stop copying if an error occurs 
  33. --- RECORDSEPARATOR ---
  34. CP_NODIALOG 
  35. --- RECORDSEPARATOR ---
  36. --- RECORDSEPARATOR ---
  37. does not show the dialog box 
  38. --- RECORDSEPARATOR ---
  39. CP_CALLBACK 
  40. --- RECORDSEPARATOR ---
  41. 16 
  42. --- RECORDSEPARATOR ---
  43. enable the copy callback handler 
  44. --- RECORDSEPARATOR ---
  45. CP_ANIMATE 
  46. --- RECORDSEPARATOR ---
  47. 32 
  48. --- RECORDSEPARATOR ---
  49. shows system file copying animation (Windows only) 
  50. --- RECORDSEPARATOR ---
  51. CP_SIZEUPDATE 
  52. --- RECORDSEPARATOR ---
  53. 64 
  54. --- RECORDSEPARATOR ---
  55. updates the callback handler by size 
  56. --- RECORDSEPARATOR ---
  57. You can add any of these flags together to customize the dialog box. 
  58. --- RECORDSEPARATOR ---
  59. To implement the callback handler, use the CP_CALLBACK flag. Typically you would also 
  60. --- RECORDSEPARATOR ---
  61. use the CP_NODIALOG flag and implement your own dialog box. If you use this flag then 
  62. --- RECORDSEPARATOR ---
  63. you need to add a handler called 'baCopyProgres
  64. --- RECORDSEPARATOR ---
  65. sUpdate'. This handler needs to be a 
  66. --- RECORDSEPARATOR ---
  67. movie script. 
  68. --- RECORDSEPARATOR ---
  69. This handler will have two arguments passed into it - the percentage copied so far and the 
  70. --- RECORDSEPARATOR ---
  71. current file being copied. The handler will be called whenever the percentage copied has 
  72. --- RECORDSEPARATOR ---
  73. increased by one, or a new file is being copied. If you specify the CP_SIZEUPDATE, then 
  74. --- RECORDSEPARATOR ---
  75. your handler will be called whenever approximately 64k of data has been copied, rather 
  76. --- RECORDSEPARATOR ---
  77. than by percentage. 
  78. --- RECORDSEPARATOR ---
  79. To stop copying, you can return 1 in your handler; return 0 or no return to conti
  80. --- RECORDSEPARATOR ---
  81. nue copying. 
  82. --- RECORDSEPARATOR ---
  83. An example handler is listed below 
  84. --- RECORDSEPARATOR ---
  85. - the update functions would be used to update your own 
  86. --- RECORDSEPARATOR ---
  87. progress dialog. 
  88. --- RECORDSEPARATOR ---
  89. on baCopyProgressUpdate percentage, filename 
  90. --- RECORDSEPARATOR ---
  91. updateProgressBar percentage 
  92. --- RECORDSEPARATOR ---
  93. updateStatus fileName 
  94. --- RECORDSEPARATOR ---
  95. if keyPressed( " " ) then -- if user presses space bar, stop copying 
  96. --- RECORDSEPARATOR ---
  97. return 1 
  98. --- RECORDSEPARATOR ---
  99. end if 
  100. --- RECORDSEPARATOR ---
  101. end 
  102. --- RECORDSEPARATOR ---
  103. The callback handler is only available on Director.